/** 
 * Project Name:eleme-website 
 * File Name:SpecServiceImpl.java 
 * Package Name:com.eleme.service.impl 
 * Date:2018年1月3日下午3:52:07 
 * Copyright (c) 2018, fakedesigner@163.com All Rights Reserved. 
 * 
*/  
  
package com.eleme.service.impl;

import java.util.List;

import com.eleme.dao.IDaoFactory;
import com.eleme.dao.IShopCartDao;
import com.eleme.dao.ISpecDao;
import com.eleme.entity.Spec;
import com.eleme.entity.V_Goods_Spec;
import com.eleme.service.ISpecService;
import com.google.gson.GsonBuilder;

/** 
 * ClassName:SpecServiceImpl <br/> 
 * Function: TODO ADD FUNCTION. <br/> 
 * Reason:   TODO ADD REASON. <br/> 
 * Date:     2018年1月3日 下午3:52:07 <br/> 
 * @author   Pan 
 * @version   
 * @since    JDK 1.8 
 * @see       
 */
public class SpecServiceImpl extends BaseServiceImpl<Spec> implements ISpecService{

	private ISpecDao dao;
	
	public SpecServiceImpl(IDaoFactory factory) {
		super(factory.getSpecDao());
		dao = (ISpecDao) super.getDao();
	}
	
	
	
	public String getGoodsSpecJSON(int shopid) {
		return new GsonBuilder().create().toJson(dao.getShopSpec(shopid));
	}



	public static void main(String[] args) {
		// TODO Auto-generated method stub
	}

}
